package com.hrt.datasender.dataschedule;

import org.quartz.JobExecutionContext;

import com.btcode.common.MyLog;
import com.btcode.log.ILog;
import com.btcode.schedule.SingleInstanceJob;
import com.hrt.datasender.datadao.service.BdS1HourService;

/**
 * 
 * <pre>
 * 压缩sqlite数据库
 * </pre>
 * 
 * @author FAN
 * @date 2018年9月17日下午3:30:40
 */
public class DataCompressScheduler extends SingleInstanceJob {

    @SuppressWarnings("unused")
    private ILog log;

    @Override
    public void initJob(JobExecutionContext arg0) {

        log = MyLog.getInstance().getLogger(getClass());
    }

    @Override
    public void myExecute(JobExecutionContext arg0) {

        BdS1HourService.getInstance().compressDataBase();

    }

}
